/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package controlador;

import java.sql.*;

public class conexionMySql {
    
    private String url = "jdbc:mysql://localhost/sil";
    private String user = "root";
    private String password = "root";

    public Connection comenzarDb() {
        Connection link = null;
        try {
            Class.forName("org.gjt.mm.mysql.Driver");
            link = DriverManager.getConnection(this.url, this.user, this.password);
        } catch (Exception e) {
            System.out.println("error");
        }
        return link;
    }
}